namespace Jumpton.SFA.Server.Entity {
    using System;
    using System.Collections.Generic;
    using System.Text;
    using Jumpton.Persistent;
    using System.Data;
    using System.Runtime.Serialization;
    
    
    [System.SerializableAttribute()]
    [Map("SUPPLY")]
    public class SUPPLY : ObjectRow {
        
        public SUPPLY() {
        }
        
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="dataRow">DataTable 中的一行数据</param>
        /// <param name="objectTable">存储当前对象的数据表格</param>
        public SUPPLY(System.Data.DataRow dataRow, ObjectTable parent) : 
                base(dataRow, parent) {
        }
        
        /// <summary>
        /// 供反序列化使用的构造函数
        /// </summary>
        /// <param name="info"></param>
        /// <param name="context"></param>
        protected SUPPLY(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : 
                base(info, context) {
        }
        
        [Key("ID",true,true)]
        public decimal ID {
            get {
                return (System.Decimal)GetValue("ID");
            }
            set {
                SetValue("ID", value);
            }
        }
        
        [Field("CODE")]
        public string CODE {
            get {
                return (System.String)GetValue("CODE");
            }
            set {
                SetValue("CODE", value);
            }
        }
        
        [Field("NAME")]
        public string NAME {
            get {
                return (System.String)GetValue("NAME");
            }
            set {
                SetValue("NAME", value);
            }
        }
        
        [Field("ADDRESS")]
        public string ADDRESS {
            get {
                return (System.String)GetValue("ADDRESS");
            }
            set {
                SetValue("ADDRESS", value);
            }
        }
        
        [Field("CONTACT")]
        public string CONTACT {
            get {
                return (System.String)GetValue("CONTACT");
            }
            set {
                SetValue("CONTACT", value);
            }
        }
        
        [Field("TEL")]
        public string TEL {
            get {
                return (System.String)GetValue("TEL");
            }
            set {
                SetValue("TEL", value);
            }
        }
        
        [Field("MOBILE")]
        public string MOBILE {
            get {
                return (System.String)GetValue("MOBILE");
            }
            set {
                SetValue("MOBILE", value);
            }
        }
        
        [Field("IDENTITY1")]
        public string IDENTITY1 {
            get {
                return (System.String)GetValue("IDENTITY1");
            }
            set {
                SetValue("IDENTITY1", value);
            }
        }
        
        [Field("IDENTITY2")]
        public string IDENTITY2 {
            get {
                return (System.String)GetValue("IDENTITY2");
            }
            set {
                SetValue("IDENTITY2", value);
            }
        }
        
        [Field("IDENTITY3")]
        public string IDENTITY3 {
            get {
                return (System.String)GetValue("IDENTITY3");
            }
            set {
                SetValue("IDENTITY3", value);
            }
        }
        
        [Field("IDENTITY4")]
        public string IDENTITY4 {
            get {
                return (System.String)GetValue("IDENTITY4");
            }
            set {
                SetValue("IDENTITY4", value);
            }
        }
        
        [Field("IDENTITY5")]
        public string IDENTITY5 {
            get {
                return (System.String)GetValue("IDENTITY5");
            }
            set {
                SetValue("IDENTITY5", value);
            }
        }

        [Field("LAST_UPDATER")]
        public string LAST_UPDATER
        {
            get
            {
                return (System.String)GetValue("LAST_UPDATER");
            }
            set
            {
                SetValue("LAST_UPDATER", value);
            }
        }

        [Field("LAST_UPDATE_TIME")]
        public decimal LAST_UPDATE_TIME
        {
            get
            {
                return (decimal)GetValue("LAST_UPDATE_TIME", DateTime.Now);
            }
            set
            {
                SetValue("LAST_UPDATE_TIME", value);
            }
        }



        [Field("ACTIVE")]
        public Boolean ACTIVE
        {
            get
            {
                return (System.Boolean)GetValue("ACTIVE", false);
            }
            set
            {
                SetValue("ACTIVE", value);
            }
        }
        
       

        [Field("DOMAIN_ID")]
        public decimal DOMAINID
        {
            get
            {
                return (System.Decimal)GetValue("DOMAINID");
            }
            set
            {
                SetValue("DOMAINID", value);
            }
        }
    }
}
